<?php
$query = "select * from assets where width <= '200'";
	$result = mysql_query($query);
	$rr=mysql_num_rows($result);
	echo '<form name="choose_mk" id="choose_mk" method="post" action="ed03.php">';
	echo '<table border="1"><tr><th>Marker Icon</th><th>select</th><th>remove</th></tr>';
	for ($i=0; $i<$rr; $i++) {
	$nextresult = mysql_fetch_array($result);
	if ($nextresult['filename']<>"") {  //only display if icon not NULL
	if (strcmp($nextresult['filename'],$project_markerIcon) == 0 ){
			$checked = 'checked';
		} else {
			$checked = ' ';
		}
	echo '<tr><td><img src="'.$nextresult["filename"].'" class="iconimage" alt="'.$nextresult["filename"].'" /></td>';
	echo '<td><input type="radio" name="icon" value="'.$nextresult["id"].'"  '.$checked.' /></td>';
	echo '<td><input type="checkbox" name="icon_delete" value="'.$nextresult["id"].'" /></td></tr>';
		}//if
	}//for
	echo '</table>';
	echo '<input type="hidden" name="project_id" value="'.$project_id.'" />';
	echo '<input type="hidden" name="choose_markericon_form_submit_check" value="1" />';
	echo '<input type="submit" value="save icon" />';
	echo '</table></form>';
?>
